//
//  ResponseModel.swift
//  App
//
//  Created by 汤泽川 on 2019/3/26.
//

import Foundation

public struct ResponseModel<T> : Codable where T : Codable {
    var status : Int
    var message : String
    var data : T?
    var isSuccess : Bool {
        get{
            return status == 0
        }
    }
    init(_ status : Int, _ message : String) {
        self.status = status
        self.message = message
    }
}
